using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_ServiceBillEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_ServiceBillEntity()
         {
             tableName = "PT_ServiceBill";


			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Address","Address","string",1024,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","AddressNumber","AddressNumber","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Bill_NO","Bill_NO","string",20,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Cashier","Cashier","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CellPhone","CellPhone","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CheckBy","CheckBy","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Comment","Comment","string",1024,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CreatedBy","CreatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CustName","CustName","string",100,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CustName_noUnicode","CustName_noUnicode","string",200,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","CustomerRequest","CustomerRequest","string",2000,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Description","Description","string",2000,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","DistCode","DistCode","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","FinishDate","FinishDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Fuellevel","Fuellevel","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","InputDate","InputDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","IsDeleted","IsDeleted","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","IsFinished","IsFinished","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","IsUseOil","IsUseOil","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","MachineCode","MachineCode","string",1024,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Model","Model","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","MotorStatus","MotorStatus","string",2000,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","MotorStatusBefore","MotorStatusBefore","string",2000,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","NumberPlate","NumberPlate","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","OilPaid","OilPaid","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","OutPaid","OutPaid","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","OutputDate","OutputDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Phone","Phone","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","ProvinceCode","ProvinceCode","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","QOT_NO","QOT_NO","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","ReceivedBy","ReceivedBy","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","RepairDate","RepairDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","RepairedBy","RepairedBy","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","RepairedBy2","RepairedBy2","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","RepairPaid","Tiền dịch vụ : tổng thành tiền của các hạng mục sửa chữa","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","ReportDate","ReportDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","ServicePaid","ServicePaid","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","ServiceType","SC,BH,RB","string",4,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","ToolPaid","ToolPaid","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","TotalKms","TotalKms","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","TotalLaiGCN","TotalLaiGCN","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","TotalLaiPTTM","TotalLaiPTTM","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","TotalMoney","TotalMoney","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","UpdatedBy","UpdatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBill","Ward","Ward","string",200,false,true,true,false,"","",""));
         }
       //properties
                    
		 protected string m_Address;
		 protected string m_AddressNumber;
		 protected string m_Bill_NO;
		 protected int m_Cashier;
		 protected string m_CellPhone;
		 protected int m_CheckBy;
		 protected string m_Comment;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected string m_CustName;
		 protected string m_CustName_noUnicode;
		 protected string m_CustomerRequest;
		 protected string m_Description;
		 protected int m_DistCode;
		 protected DateTime m_FinishDate;
		 protected int m_Fuellevel;
		 protected DateTime m_InputDate;
		 protected bool m_IsDeleted;
		 protected bool m_IsFinished;
		 protected bool m_IsUseOil;
		 protected string m_MachineCode;
		 protected string m_Model;
		 protected string m_MotorStatus;
		 protected string m_MotorStatusBefore;
		 protected string m_NumberPlate;
		 protected double m_OilPaid;
		 protected double m_OutPaid;
		 protected DateTime m_OutputDate;
		 protected string m_Phone;
		 protected int m_ProvinceCode;
		 protected string m_QOT_NO;
		 protected int m_ReceivedBy;
		 protected DateTime m_RepairDate;
		 protected int m_RepairedBy;
		 protected int m_RepairedBy2;
		 protected double m_RepairPaid;
		 protected DateTime m_ReportDate;
		 protected double m_ServicePaid;
		 protected string m_ServiceType;
		 protected double m_ToolPaid;
		 protected double m_TotalKms;
		 protected double m_TotalLaiGCN;
		 protected double m_TotalLaiPTTM;
		 protected double m_TotalMoney;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;
		 protected string m_Ward;

		 public string Address

          { 
                get { 
                    return m_Address;}

                set{m_Address=value;

                    GetField("Address").Set();
                    GetField("Address").IsNull=(value == null);           
                    }
          }
		 public string AddressNumber

          { 
                get { 
                    return m_AddressNumber;}

                set{m_AddressNumber=value;

                    GetField("AddressNumber").Set();
                    GetField("AddressNumber").IsNull=(value == null);           
                    }
          }
		 public string Bill_NO

          { 
                get { 
                    return m_Bill_NO;}

                set{m_Bill_NO=value;

                    GetField("Bill_NO").Set();
                    GetField("Bill_NO").IsNull=(value == null);           
                    }
          }
		 public int Cashier

          { 
                get { 
                    return m_Cashier;}

                set{m_Cashier=value;

                    GetField("Cashier").Set();
                    GetField("Cashier").IsNull=(value == null);           
                    }
          }
		 public string CellPhone

          { 
                get { 
                    return m_CellPhone;}

                set{m_CellPhone=value;

                    GetField("CellPhone").Set();
                    GetField("CellPhone").IsNull=(value == null);           
                    }
          }
		 public int CheckBy

          { 
                get { 
                    return m_CheckBy;}

                set{m_CheckBy=value;

                    GetField("CheckBy").Set();
                    GetField("CheckBy").IsNull=(value == null);           
                    }
          }
		 public string Comment

          { 
                get { 
                    return m_Comment;}

                set{m_Comment=value;

                    GetField("Comment").Set();
                    GetField("Comment").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public string CustName

          { 
                get { 
                    return m_CustName;}

                set{m_CustName=value;

                    GetField("CustName").Set();
                    GetField("CustName").IsNull=(value == null);           
                    }
          }
		 public string CustName_noUnicode

          { 
                get { 
                    return m_CustName_noUnicode;}

                set{m_CustName_noUnicode=value;

                    GetField("CustName_noUnicode").Set();
                    GetField("CustName_noUnicode").IsNull=(value == null);           
                    }
          }
		 public string CustomerRequest

          { 
                get { 
                    return m_CustomerRequest;}

                set{m_CustomerRequest=value;

                    GetField("CustomerRequest").Set();
                    GetField("CustomerRequest").IsNull=(value == null);           
                    }
          }
		 public string Description

          { 
                get { 
                    return m_Description;}

                set{m_Description=value;

                    GetField("Description").Set();
                    GetField("Description").IsNull=(value == null);           
                    }
          }
		 public int DistCode

          { 
                get { 
                    return m_DistCode;}

                set{m_DistCode=value;

                    GetField("DistCode").Set();
                    GetField("DistCode").IsNull=(value == null);           
                    }
          }
		 public DateTime FinishDate

          { 
                get { 
                    return m_FinishDate;}

                set{m_FinishDate=value;

                    GetField("FinishDate").Set();
                    GetField("FinishDate").IsNull=(value == null);           
                    }
          }
		 public int Fuellevel

          { 
                get { 
                    return m_Fuellevel;}

                set{m_Fuellevel=value;

                    GetField("Fuellevel").Set();
                    GetField("Fuellevel").IsNull=(value == null);           
                    }
          }
		 public DateTime InputDate

          { 
                get { 
                    return m_InputDate;}

                set{m_InputDate=value;

                    GetField("InputDate").Set();
                    GetField("InputDate").IsNull=(value == null);           
                    }
          }
		 public bool IsDeleted

          { 
                get { 
                    return m_IsDeleted;}

                set{m_IsDeleted=value;

                    GetField("IsDeleted").Set();
                    GetField("IsDeleted").IsNull=(value == null);           
                    }
          }
		 public bool IsFinished

          { 
                get { 
                    return m_IsFinished;}

                set{m_IsFinished=value;

                    GetField("IsFinished").Set();
                    GetField("IsFinished").IsNull=(value == null);           
                    }
          }
		 public bool IsUseOil

          { 
                get { 
                    return m_IsUseOil;}

                set{m_IsUseOil=value;

                    GetField("IsUseOil").Set();
                    GetField("IsUseOil").IsNull=(value == null);           
                    }
          }
		 public string MachineCode

          { 
                get { 
                    return m_MachineCode;}

                set{m_MachineCode=value;

                    GetField("MachineCode").Set();
                    GetField("MachineCode").IsNull=(value == null);           
                    }
          }
		 public string Model

          { 
                get { 
                    return m_Model;}

                set{m_Model=value;

                    GetField("Model").Set();
                    GetField("Model").IsNull=(value == null);           
                    }
          }
		 public string MotorStatus

          { 
                get { 
                    return m_MotorStatus;}

                set{m_MotorStatus=value;

                    GetField("MotorStatus").Set();
                    GetField("MotorStatus").IsNull=(value == null);           
                    }
          }
		 public string MotorStatusBefore

          { 
                get { 
                    return m_MotorStatusBefore;}

                set{m_MotorStatusBefore=value;

                    GetField("MotorStatusBefore").Set();
                    GetField("MotorStatusBefore").IsNull=(value == null);           
                    }
          }
		 public string NumberPlate

          { 
                get { 
                    return m_NumberPlate;}

                set{m_NumberPlate=value;

                    GetField("NumberPlate").Set();
                    GetField("NumberPlate").IsNull=(value == null);           
                    }
          }
		 public double OilPaid

          { 
                get { 
                    return m_OilPaid;}

                set{m_OilPaid=value;

                    GetField("OilPaid").Set();
                    GetField("OilPaid").IsNull=(value == null);           
                    }
          }
		 public double OutPaid

          { 
                get { 
                    return m_OutPaid;}

                set{m_OutPaid=value;

                    GetField("OutPaid").Set();
                    GetField("OutPaid").IsNull=(value == null);           
                    }
          }
		 public DateTime OutputDate

          { 
                get { 
                    return m_OutputDate;}

                set{m_OutputDate=value;

                    GetField("OutputDate").Set();
                    GetField("OutputDate").IsNull=(value == null);           
                    }
          }
		 public string Phone

          { 
                get { 
                    return m_Phone;}

                set{m_Phone=value;

                    GetField("Phone").Set();
                    GetField("Phone").IsNull=(value == null);           
                    }
          }
		 public int ProvinceCode

          { 
                get { 
                    return m_ProvinceCode;}

                set{m_ProvinceCode=value;

                    GetField("ProvinceCode").Set();
                    GetField("ProvinceCode").IsNull=(value == null);           
                    }
          }
		 public string QOT_NO

          { 
                get { 
                    return m_QOT_NO;}

                set{m_QOT_NO=value;

                    GetField("QOT_NO").Set();
                    GetField("QOT_NO").IsNull=(value == null);           
                    }
          }
		 public int ReceivedBy

          { 
                get { 
                    return m_ReceivedBy;}

                set{m_ReceivedBy=value;

                    GetField("ReceivedBy").Set();
                    GetField("ReceivedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime RepairDate

          { 
                get { 
                    return m_RepairDate;}

                set{m_RepairDate=value;

                    GetField("RepairDate").Set();
                    GetField("RepairDate").IsNull=(value == null);           
                    }
          }
		 public int RepairedBy

          { 
                get { 
                    return m_RepairedBy;}

                set{m_RepairedBy=value;

                    GetField("RepairedBy").Set();
                    GetField("RepairedBy").IsNull=(value == null);           
                    }
          }
		 public int RepairedBy2

          { 
                get { 
                    return m_RepairedBy2;}

                set{m_RepairedBy2=value;

                    GetField("RepairedBy2").Set();
                    GetField("RepairedBy2").IsNull=(value == null);           
                    }
          }
		 public double RepairPaid

          { 
                get { 
                    return m_RepairPaid;}

                set{m_RepairPaid=value;

                    GetField("RepairPaid").Set();
                    GetField("RepairPaid").IsNull=(value == null);           
                    }
          }
		 public DateTime ReportDate

          { 
                get { 
                    return m_ReportDate;}

                set{m_ReportDate=value;

                    GetField("ReportDate").Set();
                    GetField("ReportDate").IsNull=(value == null);           
                    }
          }
		 public double ServicePaid

          { 
                get { 
                    return m_ServicePaid;}

                set{m_ServicePaid=value;

                    GetField("ServicePaid").Set();
                    GetField("ServicePaid").IsNull=(value == null);           
                    }
          }
		 public string ServiceType

          { 
                get { 
                    return m_ServiceType;}

                set{m_ServiceType=value;

                    GetField("ServiceType").Set();
                    GetField("ServiceType").IsNull=(value == null);           
                    }
          }
		 public double ToolPaid

          { 
                get { 
                    return m_ToolPaid;}

                set{m_ToolPaid=value;

                    GetField("ToolPaid").Set();
                    GetField("ToolPaid").IsNull=(value == null);           
                    }
          }
		 public double TotalKms

          { 
                get { 
                    return m_TotalKms;}

                set{m_TotalKms=value;

                    GetField("TotalKms").Set();
                    GetField("TotalKms").IsNull=(value == null);           
                    }
          }
		 public double TotalLaiGCN

          { 
                get { 
                    return m_TotalLaiGCN;}

                set{m_TotalLaiGCN=value;

                    GetField("TotalLaiGCN").Set();
                    GetField("TotalLaiGCN").IsNull=(value == null);           
                    }
          }
		 public double TotalLaiPTTM

          { 
                get { 
                    return m_TotalLaiPTTM;}

                set{m_TotalLaiPTTM=value;

                    GetField("TotalLaiPTTM").Set();
                    GetField("TotalLaiPTTM").IsNull=(value == null);           
                    }
          }
		 public double TotalMoney

          { 
                get { 
                    return m_TotalMoney;}

                set{m_TotalMoney=value;

                    GetField("TotalMoney").Set();
                    GetField("TotalMoney").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }
		 public string Ward

          { 
                get { 
                    return m_Ward;}

                set{m_Ward=value;

                    GetField("Ward").Set();
                    GetField("Ward").IsNull=(value == null);           
                    }
          }

}
}
